package com.example.hotel_demo.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DCIUtil {

    public boolean panduandaxiao(String start,String end) throws ParseException {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date Startdate = sdf.parse(start);
        Date enddate = sdf.parse(end);

        return Startdate.before(enddate);
    }
}
